#ifndef _HTTP_H_
#define _HTTP_H_
/* Includes ------------------------------------------------------------------*/
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdarg.h>
/* typedef -------------------------------------------------------------------*/
/* define --------------------------------------------------------------------*/
/* macro ---------------------------------------------------------------------*/
/* variables -----------------------------------------------------------------*/
/* function prototypes -------------------------------------------------------*/
/* functions -----------------------------------------------------------------*/
int Http_Create(void *buffer, size_t size, char *method, char *host, int port, char *url, ...);
int Http_AddHeader(void *buffer, size_t size, char *format, ...);
int Http_EditContent(void *buffer, size_t size, char *format, ...);
int Http_AddContent(void *buffer, size_t size, void *data, size_t dataSize);
int Http_FillContentLength(void *buffer, size_t size, int specify);

int Http_ContentLength(void *buffer, size_t size);
int Http_PacketLength(void *buffer, size_t size);
#endif
